﻿using System;
using System.Collections.Generic;

namespace PhoneUI.Com.Modle
{
    /// <summary>
    /// 客户相关订单信息，包含明细内容
    /// </summary>
    public sealed class SaleTaskForCusWithMx
    {
        /// <summary>
        /// 订单分部ID
        /// </summary>
        public int scid { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public int taskid { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string taskcode { get; set; }
        /// <summary>
        /// 下单日期
        /// </summary>
        public DateTime taskdate { get; set; }
        /// <summary>
        /// 订单联系人
        /// </summary>
        public string rel_rep { get; set; }
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string cus_tele { get; set; }
        /// <summary>
        /// 联系人地址
        /// </summary>
        public string cus_address { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public string assign_emp { get; set; }
        /// <summary>
        /// 结算方式
        /// </summary>
        public string banktypename { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        public string moneyname { get; set; }
        /// <summary>
        /// 订金
        /// </summary>
        public decimal damt { get; set; }
        /// <summary>
        /// 已收订金
        /// </summary>
        public decimal takedamt { get; set; }
        /// <summary>
        /// 单据金额
        /// </summary>
        public decimal msttakeamt { get; set; }
        /// <summary>
        /// 已收余额
        /// </summary>
        public decimal takeamt { get; set; }
        /// <summary>
        /// 未收金额 = msttakeamt(单据金额) - takedamt(已收订金) - takeamt(已收余额)
        /// </summary>
        public decimal notakeamt { get; set; }
        /// <summary>
        /// 相关单号
        /// </summary>
        public string relcode { get; set; }
        /// <summary>
        /// 交货方式
        /// </summary>
        public string paytype { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal otheramt { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string dscrp { get; set; }
        /// <summary>
        /// 生产备注
        /// </summary>
        public string dscrp2 { get; set; }
        /// <summary>
        /// 辅助备注
        /// </summary>
        public string dscrp3 { get; set; }
        /// <summary>
        /// 订单明细，如果不带明细则mxs = null;
        /// </summary>
        public List<SaletaskMxAndJd> mxs { get; set; }
    }
}